summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/os_test.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2017-12-01 13:22:27 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-12-01 13:22:27 +0100
commit39176274946d70ff520f265dee8fbd16d5fe0000 (patch)
tree318801d93146752050c9a492654ae3738820e3b9 /3rdparty/bx/tests/os_test.cpp
parent6829ecb3b037d6bfbe0b84e818d17d712f71bce6 (diff)
Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic]
Diffstat (limited to '3rdparty/bx/tests/os_test.cpp')
-rw-r--r--3rdparty/bx/tests/os_test.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/3rdparty/bx/tests/os_test.cpp b/3rdparty/bx/tests/os_test.cpp
index e6aeb314fbe..1589416e543 100644
--- a/3rdparty/bx/tests/os_test.cpp
+++ b/3rdparty/bx/tests/os_test.cpp
@@ -5,6 +5,8 @@
#include "test.h"
#include <bx/os.h>
+#include <bx/semaphore.h>
+#include <bx/timer.h>
TEST_CASE("getProcessMemoryUsed", "")
{
@@ -12,9 +14,15 @@ TEST_CASE("getProcessMemoryUsed", "")
// DBG("bx::getProcessMemoryUsed %d", bx::getProcessMemoryUsed() );
}
-TEST_CASE("getTempPath", "")
+TEST_CASE("semaphore_timeout", "")
{
- char tmpDir[512];
- uint32_t len = BX_COUNTOF(tmpDir);
- REQUIRE(bx::getTempPath(tmpDir, &len) );
+ bx::Semaphore sem;
+
+ int64_t start = bx::getHPCounter();
+ bool ok = sem.wait(900);
+ int64_t elapsed = bx::getHPCounter() - start;
+ int64_t frequency = bx::getHPFrequency();
+ double ms = double(elapsed) / double(frequency) * 1000;
+ printf("%f\n", ms);
+ REQUIRE(!ok);
}
ght'>| | | | | | | | | | | | - gstriker.cpp: used finder for memory bank and other small cleanups | * | snes.xml: Added seven dumps. (#9763) 0kmg2022-05-161-4/+88 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New working software list additions ----------------------------------- Corn Buster [NoIntro] Dorke & Ymp [NoIntro] Iron Commando [NoIntro] Legend (Piko reissue) [NoIntro] Mr. Bloopy Saves the World [NoIntro] Super Noah's Ark 3D (Piko reissue) [NoIntro] Super Thor Quest [NoIntro] | * | nemesis.cpp: Fixed coin inputs in salamand and clones (MT08315). (#9766) 0kmg2022-05-161-4/+4 | | | | * | fix version detection in str_to_version (#9767) sairuk2022-05-161-1/+1 | | | | * | Fix interface to upd7759 sounds (#9769) Paul-Arnold2022-05-161-2/+1 | | | | | | | | | Interface to upd7759 was using start and reset inputs when should've been using mode and reset. | * | dc.xml: Tidied up descriptions and added a missing parent/clone ↵ ArcadeShadow2022-05-161-101/+101 | | | | | | | | | | | | relationship. (#9758) | * | Software lists: Standardized titles of Mashin Eiyuuden Wataru games. (#9764) 0kmg2022-05-164-6/+6 | | | | * | pangofun.cpp: remove unnecessary screen legacy setup, add QA notes angelosa2022-05-161-22/+24 | | | | * | rc2014: add more official ROMs Miodrag Milanovic2022-05-151-12/+56 | | | | * | RC2014 (#9759) Miodrag Milanović2022-05-1525-219/+1567 | | | | | | | | | | | | | | | | | | | | | | | | | | | New working clones ------------------ RC2014 Mini with CP/M Upgrade [Miodrag Milanovic] -rc2014: added RTC, IDE, FDC and Sound module, fix memory and i/o mapping, proper flash mapping | * | New working software list additions Nigel Barnes2022-05-151-4/+115 | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------------- bbc_rom: Integra-B OS 1.14, Integra-B OS 1.20, Integra-B OS 1.20 (Y2K patched), Memex-B20 2.2, VidiEditor 1.2, PipeDream 0.2, Chuckie Egg (unofficial ROM), Frak! (unofficial ROM), Killer Gorilla (unofficial ROM) [Nigel Barnes] Software list items promoted to working --------------------------------------- bbc_rom: SideAid128 1.03 [Nigel Barnes] | * | acorn_dsk: Adjusted returned FFID's to indicate verified internal structure. Nigel Barnes2022-05-151-10/+15 | | | | * | bus/bbc/internal: Added the Memex-B20 board. Nigel Barnes2022-05-154-0/+163 | | | * | | Merge remote-tracking branch 'upstream/master' Robbbert2022-05-1519-305/+820 |\| | | * | netlist: Improved PPMF target support and test coverage. (#9752) couriersud2022-05-1519-305/+820 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses most of the issues described in #8590. * Fixed standalone Visual Studio 2019 builds, including support for clang toolchain. * Added static stub to PMF to support MSVC ABI. * Better aligned ppmf syntax with MAME's delegate syntax. * Add tests/test_ppmf*.cpp testing examples given in #8590. Also worked around issues some versions of Apple clang have with 5aaae19230bd39dda6766641672f57276a3f9ea1. * | | Merge remote-tracking branch 'upstream/master' Robbbert2022-05-15115-1912/+1222 |\| | | * | exidy.cpp: Got rid of duplicate coin inputs. Vas Crabb2022-05-151-15/+37 | | | | | | | | | | | | | | | | | | | | | Partially addresses GitHub #9757. Coin 2 doesn't work for targ and spectar, but that isn't a regression (it was already broken, not sure if error in schematics, game bug, or emulation issue is to blame). DIP switches and locations are still a bit of a mess, too. | * | bus/vcs_ctrl: Fixed swapped paddle buttons (fixes #9755). (#9756) 0kmg2022-05-151-2/+2 | | | | * | vball.cpp: used finder for memory bank and other small cleanups Ivan Vangelista2022-05-144-364/+352 | | | | * | tait8741.cpp: Removed old simulation of Gladiator MCUs (unused for a while now). Vas Crabb2022-05-143-425/+0 | | | | * | dpb_combiner.cpp: Deleted left over file per Ryan Holtz Scott Stone2022-05-131-346/+0 | | | | * | New working machines hap2022-05-133-4/+71 | | | | | | | | | | | | | | | -------------------- Cops Pocket Assistant [hap, Sean Riddle] | * | intelfsh.cpp: Keep spacing consistent to all other devices Scott Stone2022-05-131-1/+1 | | | | * | slapfght.cpp: Hooked up flip screen output to MCU for alcon and slapfigh (#9748) Vas Crabb2022-05-134-10/+25 | | | | | | | | | | | | | | | | | | | | | | | | | | | * slapfght.cpp: Hooked up flip screen output to MCU for alcon and slapfigh. * machine/taito68705interface.cpp: Removed some copy/pasted copyright holders. The copyright holders were copied across from the drivers that the device was factored out of. There's no content from the original drivers left. | * | 8080bw.cpp: Re-removed cocktail inputs from spaceat2/sinvzen. (#9624) eientei952022-05-131-5/+9 | | | | * | a2600.xml: Fixed publishers, and mark generalr/westward as clones of custer. ↵ eientei952022-05-131-8/+8 | | | | | | | | | | | | | | | (#9623) "Mystique" was a product line, actual publisher was "American Multiple Industries". | * | bus/nes: Various minor cleanups. (#9641) 0kmg2022-05-1352-345/+167 | | | | | | | | | | | | | | | * MMC1: Made mirroring bits overridable for derivative boards. Also removed code for rumored MMC1C variant. * Moved various boards' hardwired mirroring from pcb_reset() to the software list. * Removed redundant banking of VRAM for non-banking boards and redundant variable setting. | * | cpu/mips/r4000.cpp: Added TimerIntDis mux to IPEX5. (#9718) Brice Onken2022-05-132-11/+37 | | | | * | Additions and changes to Spectrum-related softlists. (#9728) ICEknigh72022-05-133-85/+114 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timex_cass.xml, spectrum_cass.xml: * Added a list of the known covertapes of "Byte Power, 1st Class Magazine" as well as the only known dump. * Moved games published by Timex actually made for the Spectrum to appropriate list. * Replaced two dumps with better versions. specpls3.xml: * Verified that Spectrum disk version of Comando Tracer is the standalone release. * Updated notes. New working software list additions (timex_cass.xml) --------------------------------- Byte Power (February 1988) | * | zx spectrum drivers: Restore irq length == 32 / border timings. (#9711) holub2022-05-1310-36/+69 | | | | * | atari400.cpp: Added 2-port version of a5200, and fixed ANTIC memory size. ↵