asterisk/tests
David M. Lee 8f43c9716c test_json: Fix deprecation warnings
After a series of upgrades over recent weeks, I've discovered that
test_json.c won't compile in dev mode any more for me.

One of gcc-4.8.2, OS X Mavericks or Xcode 5 has decided to deprecate
tempnam. Which, in general, is a good thing. But for test code that just
needs a temporary file, it's just annoying.

This patch replaces usage of tempname with mkstemp, avoiding the
deprecation warning. It also removes the temporary files when the test
is complete, which apparently we weren't doing before (oops).

Review: https://reviewboard.asterisk.org/r/2957/
........

Merged revisions 401872 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-10-25 13:49:20 +00:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
test_abstract_jb.c Doxygen comment tweaks. 2013-08-16 17:33:21 +00:00
test_acl.c Silence a warning message from older versions of GCC. 2012-07-24 19:12:09 +00:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_aoc.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_app.c Change ast_hangup() to return void and be NULL safe. 2013-07-17 22:30:28 +00:00
test_ari.c Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
test_ari_model.c Fix module load errors for test_ari_model.so. 2013-09-16 18:36:22 +00:00
test_ast_format_str_reduce.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_astobj2.c astobj2: Remove OBJ_CONTINUE support. 2013-09-27 17:11:22 +00:00
test_astobj2_thrash.c Merged revisions 376341,376344-376345 via svnmerge from 2012-11-16 00:19:48 +00:00
test_bucket.c Fix bucket unit tests 2013-08-25 18:12:42 +00:00
test_cdr.c Fix a performance problem CDRs 2013-09-24 18:10:20 +00:00
test_cel.c Get rid of uses of stasis_topic_wait() 2013-10-03 14:59:29 +00:00
test_config.c Cache string values of formats on ast_format_cap() to save processing. 2013-10-03 14:58:16 +00:00
test_db.c app_queue: Support persisting and loading of long member lists. 2012-10-01 20:36:25 +00:00
test_devicestate.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_dlinklists.c memory leaks: Memory leak cleanup patch by Corey Farrell (first set) 2013-10-23 20:10:30 +00:00
test_endpoints.c Few more menuselect fixes missed in r392777 2013-06-24 22:05:28 +00:00
test_event.c Refactor CEL to avoid using the event system core 2013-08-17 14:46:44 +00:00
test_expr.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_format_api.c Cache string values of formats on ast_format_cap() to save processing. 2013-10-03 14:58:16 +00:00
test_func_file.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_gosub.c Doxygen Updates Janitor Work 2012-09-22 20:43:30 +00:00
test_hashtab_thrash.c Tweak comment for why usleep is used. 2013-08-14 19:06:59 +00:00
test_heap.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_jitterbuf.c Doxygen comment tweaks. 2013-08-16 17:33:21 +00:00
test_json.c test_json: Fix deprecation warnings 2013-10-25 13:49:20 +00:00
test_linkedlists.c test_linkedlists: Fix memory leak 2013-10-24 19:57:04 +00:00
test_locale.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_logger.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_netsock2.c Add a unit test for ast_sockaddr_split_hostport 2011-11-09 19:31:27 +00:00
test_optional_api.c optional_api: Fix linking problems between modules that export global symbols 2013-08-30 13:40:27 +00:00
test_pbx.c Merged revisions 337062 via svnmerge from 2011-09-20 21:05:42 +00:00
test_poll.c Add leading and trailing backslashes 2012-04-19 21:14:35 +00:00
test_res_stasis.c Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
test_sched.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_scoped_lock.c I forgot to add the unit tests for scoped locks earlier today. 2012-08-23 04:12:32 +00:00
test_security_events.c Stasis: Update security events to use Stasis 2013-05-17 17:36:10 +00:00
test_skel.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_sorcery.c Fix sorcery unit tests 2013-08-23 18:10:11 +00:00
test_sorcery_astdb.c Fix sorcery unit tests 2013-08-23 18:10:11 +00:00
test_sorcery_realtime.c Fix sorcery unit tests 2013-08-23 18:10:11 +00:00
test_stasis.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_stasis_channels.c Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
test_stasis_endpoints.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_stringfields.c Add aggregate operations for stuctures with string fields 2013-02-07 15:16:44 +00:00
test_strings.c This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
test_substitution.c test_substitution: Fix failing test. 2013-08-30 17:11:06 +00:00
test_taskprocessor.c Multiple revisions 399887,400138,400178,400180-400181 2013-09-30 18:55:27 +00:00
test_threadpool.c Add a serializer interface to the threadpool 2013-02-12 21:45:59 +00:00
test_time.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_utils.c ARI - channel recording support 2013-07-03 17:58:45 +00:00
test_uuid.c Add uuid wrapper API call ast_uuid_generate_str(). 2013-03-28 23:59:20 +00:00
test_voicemail_api.c unit tests: test_voicemail_api leaks stringfields from snapshots 2013-09-04 21:37:01 +00:00
test_xml_escape.c Merged revisions 378935 via svnmerge from 2013-01-12 07:21:01 +00:00