summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-08-25 18:12:42 +0000
committerMatthew Jordan <mjordan@digium.com>2013-08-25 18:12:42 +0000
commit75a99a4bddaac1f98c2eda5428ce7b2983e03999 (patch)
tree58d7d697ff0849c16c76a763ce1db5c96d00600c /tests
parent447848a580941a951ed728cde0ba80c254e2e1cd (diff)
Fix bucket unit tests
After the review for buckets was completed (r2715), the handling of names in the bucket core was deferred to the wizards. As such, the bucket unit tests cannot expect that passing a URI with a scheme specified but no actual resource name will automatically fail. The tests have been updated to not make this check. ........ Merged revisions 397630 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests')
-rw-r--r--tests/test_bucket.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_bucket.c b/tests/test_bucket.c
index 68249d343..13fd684cb 100644
--- a/tests/test_bucket.c
+++ b/tests/test_bucket.c
@@ -170,11 +170,6 @@ AST_TEST_DEFINE(bucket_alloc)
return AST_TEST_FAIL;
}
- if ((bucket = ast_bucket_alloc("test://"))) {
- ast_test_status_update(test, "Allocated a bucket with no name\n");
- return AST_TEST_FAIL;
- }
-
if (!(bucket = ast_bucket_alloc("test:///tmp/bob"))) {
ast_test_status_update(test, "Failed to allocate bucket\n");
return AST_TEST_FAIL;
@@ -377,11 +372,6 @@ AST_TEST_DEFINE(bucket_file_alloc)
return AST_TEST_FAIL;
}
- if ((file = ast_bucket_file_alloc("test://"))) {
- ast_test_status_update(test, "Allocated a file with no name\n");
- return AST_TEST_FAIL;
- }
-
if (!(file = ast_bucket_file_alloc("test:///tmp/bob"))) {
ast_test_status_update(test, "Failed to allocate file\n");
return AST_TEST_FAIL;