summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-10-12 18:07:53 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-10-12 18:07:53 +0200
commit8b231061456b4e8ec86f77e509cd3e042587f953 (patch)
tree0b0675281a615b263967844f9f3677c52e9ad2a3 /tests/unit/core
parent50142318181e0349964d6b06bb909b41b69febec (diff)
downloadweechat-8b231061456b4e8ec86f77e509cd3e042587f953.zip
tests: initialize argc to -1 instead of 1 before some tests
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-string.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index a7d2d48c2..80bab8ec2 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -690,16 +690,16 @@ TEST(String, Split)
POINTERS_EQUAL(NULL, string_split ("", NULL, 0, 0, NULL));
POINTERS_EQUAL(NULL, string_split ("", "", 0, 0, NULL));
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split (NULL, NULL, 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split (NULL, "", 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split ("", NULL, 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split ("", "", 0, 0, &argc));
LONGS_EQUAL(0, argc);