You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/test-container-executor.c
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -816,19 +816,23 @@ void test_trim_function() {
816
816
free(trimmed);
817
817
}
818
818
819
+
intis_empty(char*name);
820
+
819
821
voidtest_is_empty() {
820
822
printf("\nTesting is_empty function\n");
821
823
if (is_empty("/")) {
822
824
printf("FAIL: / should not be empty\n");
823
825
exit(1);
824
826
}
825
-
if (is_empty("/tmp/2938rf2983hcqnw8ud/noexist")) {
826
-
printf("FAIL: /tmp/2938rf2983hcqnw8ud/noexist should not exist\n");
0 commit comments