Skip to contentSkip to conversation

tools/libxs: Drop XSTEST

PATCH In review Andrew Cooper 2 participants 2 messages Jun 28, 2024 – Jul 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxs: Drop XSTEST

Appears to been missed from the previous attempt in 2007.

Fixes fed194611785 ("xenstore: Remove broken and unmaintained test code")

---
CC: Anthony PERARD <[email protected]>
CC: Juergen Gross <[email protected]>

---
 tools/libs/store/xs.c | 5 -----
 1 file changed, 5 deletions(-)
tools/libs/store/xs.c +0 -5
index f84fd0f74c84..983d68ffd367 100644
@@ -496,10 +496,6 @@ static bool read_all(int fd, void *data, unsigned int len, int nonblocking)
 	return false;
 }
 
-#ifdef XSTEST
-#define read_all read_all_choice
-#define xs_write_all write_all_choice
-#else
 /* Simple routine for writing to sockets, etc. */
 bool xs_write_all(int fd, const void *data, unsigned int len)
 {
@@ -517,7 +513,6 @@ bool xs_write_all(int fd, const void *data, unsigned int len)
 
 	return true;
 }
-#endif
 
 static int get_error(const char *errorstring)
 {
Signature · 1 line
2.39.2