test-drop-caches: simplify delay loading of NtSetSystemInformation
commit447ed832e5ce50e4dc98dd53e0bbcf3e1a338f35
authorBen Peart <Ben.Peart@microsoft.com>
Tue, 1 May 2018 12:46:22 +0000 (1 12:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 May 2018 02:35:00 +0000 (4 11:35 +0900)
tree4c7ead1cf690e14b17d70aeb36d33ee61eeeccf1
parent1f1cddd558b54bb0ce19c8ace353fd07b758510d
test-drop-caches: simplify delay loading of NtSetSystemInformation

Take advantage of the recent addition of support for lazy loading functions[1]
on Windows to simplify the loading of NtSetSystemInformation.

[1] db2f7c48cb (Win32: simplify loading of DLL functions, 2017-09-25)

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Reviewed-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-drop-caches.c