source: mainline/uspace/lib/c/test/main.c@ dd7df1c

ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since dd7df1c was 7d7f5e3, checked in by Jiri Svoboda <jiri@…>, 22 months ago

loc_server_register() should be callable more than once (implementation)

We create a new session for each loc_server_register() / loc_srv_t
object. Alternatively we could multiplex all to a single connection
and then demultiplex them in the server, but this seemed simpler
at the moment.

We add a test case to libc test suite.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 * Copyright (c) 2023 Jiri Svoboda
3 * Copyright (c) 2014 Vojtech Horky
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * - The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <stdio.h>
31#include <pcut/pcut.h>
32
33PCUT_INIT;
34
35PCUT_IMPORT(capa);
36PCUT_IMPORT(casting);
37PCUT_IMPORT(circ_buf);
38PCUT_IMPORT(double_to_str);
39PCUT_IMPORT(fibril_timer);
40PCUT_IMPORT(getopt);
41PCUT_IMPORT(gsort);
42PCUT_IMPORT(ieee_double);
43PCUT_IMPORT(imath);
44PCUT_IMPORT(inttypes);
45PCUT_IMPORT(loc);
46PCUT_IMPORT(mem);
47PCUT_IMPORT(odict);
48PCUT_IMPORT(perf);
49PCUT_IMPORT(perm);
50PCUT_IMPORT(qsort);
51PCUT_IMPORT(scanf);
52PCUT_IMPORT(sprintf);
53PCUT_IMPORT(stdio);
54PCUT_IMPORT(stdlib);
55PCUT_IMPORT(str);
56PCUT_IMPORT(string);
57PCUT_IMPORT(strtol);
58PCUT_IMPORT(table);
59PCUT_IMPORT(uuid);
60
61PCUT_MAIN();
Note: See TracBrowser for help on using the repository browser.