registry: Avoid mapping registry return codes: return the right value in the first...
[samba.git] / source4 / lib / registry / tests / registry.c
index 59e31f55dc15415b13c6d681080abe59b7ae1421..06783e6a75676afec31bdac0ce0fcacaf769c01f 100644 (file)
@@ -53,7 +53,7 @@ static bool test_get_predefined_unknown(struct torture_context *tctx,
        WERROR error;
 
        error = reg_get_predefined_key(rctx, 1337, &root);
-       torture_assert_werr_equal(tctx, error, WERR_NOT_FOUND,
+       torture_assert_werr_equal(tctx, error, WERR_BADFILE,
                                  "getting predefined key failed");
        return true;
 }