diff --git a/test/src/common/harnessStorage.c b/test/src/common/harnessStorage.c index 1a44e5564..bcbadb3b3 100644 --- a/test/src/common/harnessStorage.c +++ b/test/src/common/harnessStorage.c @@ -506,9 +506,8 @@ hrnStoragePathRemove(const Storage *const storage, const char *const path, HrnSt hrnTestResultBegin(__func__, false); ASSERT(storage != NULL); - ASSERT(path != NULL); - const String *const pathFull = storagePathP(storage, STR(path)); + const String *const pathFull = storagePathP(storage, path == NULL ? NULL : STR(path)); printf("remove path '%s'", strZ(pathFull)); hrnTestResultComment(param.comment); diff --git a/test/src/module/command/backupTest.c b/test/src/module/command/backupTest.c index f9541e67a..22bdf60fc 100644 --- a/test/src/module/command/backupTest.c +++ b/test/src/module/command/backupTest.c @@ -2155,7 +2155,7 @@ testRun(void) "compare file list"); // Remove test files - HRN_STORAGE_PATH_REMOVE(storagePgIdxWrite(1), "", .recurse = true); + HRN_STORAGE_PATH_REMOVE(storagePgIdxWrite(1), NULL, .recurse = true); HRN_STORAGE_PATH_REMOVE(storagePgWrite(), "base/1", .recurse = true); }