mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 05:24:47 +00:00
Change the length of the file so that the change is picked up.
This commit is contained in:
parent
5490c9d470
commit
1e2fe921a5
@ -25,13 +25,13 @@ void test_config_snapshot__create_snapshot(void)
|
||||
cl_assert_equal_i(5, tmp);
|
||||
|
||||
/* Change the value on the file itself (simulate external process) */
|
||||
cl_git_mkfile(filename, "[old]\nvalue = 99\n");
|
||||
cl_git_mkfile(filename, "[old]\nvalue = 999\n");
|
||||
|
||||
cl_git_pass(git_config_snapshot(&new_snapshot, cfg));
|
||||
|
||||
/* New snapshot should see new value */
|
||||
cl_git_pass(git_config_get_int32(&tmp, new_snapshot, "old.value"));
|
||||
cl_assert_equal_i(99, tmp);
|
||||
cl_assert_equal_i(999, tmp);
|
||||
|
||||
/* Old snapshot should still have the old value */
|
||||
cl_git_pass(git_config_get_int32(&tmp, snapshot, "old.value"));
|
||||
|
Loading…
Reference in New Issue
Block a user